/*
 * @Author: fengYM feng25321@163.com
 * @Date: 2023-10-09 10:11:51
 * @LastEditors: fengYM feng25321@163.com
 * @LastEditTime: 2023-10-13 10:39:19
 * @Description:首页和资讯api
 */
import { apiRequest } from "../utils/request";
//推荐内容列表
export function selectBannerLst(data: any) {
  return apiRequest({
    url: `/selectBannerLst.do`,
    method: "POST",
    data,
  });
}
//资讯大分类
export function selectCote() {
  return apiRequest({
    url: `/infomation/selectCote.do`,
    method: "POST",
  });
}
//资讯小分类
export function selectSubCote(data: any) {
  return apiRequest({
    url: `/infomation/selectSubCote.do?cate=${data}`,
    method: "get",
  });
}
//资讯列表
export function selectInfoLst(data: any) {
  return apiRequest({
    url: `/infomation/selectInfoLst.do`,
    method: "POST",
    data,
  });
}

//资讯详情
export function selectInfo(data: any) {
  return apiRequest({
    url: `/infomation/selectInfo.do`,
    method: "POST",
    data,
  });
}
//案例列表
export function beautifySelectInfoLst(data: any) {
  return apiRequest({
    url: `/beautify/selectInfoLst.do`,
    method: "POST",
    data,
  });
}
//案例详情
export function beautifyselectInfo(data: any) {
  return apiRequest({
    url: `/beautify/selectInfo.do`,
    method: "POST",
    data,
  });
}
//医生分类
export function ysSelectCote() {
  return apiRequest({
    url: `/yishi/selectCote.do`,
    method: "POST",
  });
}

//医生列表
export function ysSelectLst(data: any) {
  return apiRequest({
    url: `/yishi/selectLst.do`,
    method: "POST",
    data,
  });
}
